import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.GlobalScope
import kotlinx.coroutines.delay
import kotlinx.coroutines.launch
import kotlinx.coroutines.withContext

fun main() {
    GlobalScope.launch {
        println("driving")
        withContext(Dispatchers.IO) {
            println("booking")
            delay(1000)
            println("booked")
        }
        println("Carry on")
    }
    Thread.sleep(2000)
    println("Happy")
}
